package com.gpzx.zx.module.home.frame.presenter

import com.gpzx.zx.module.home.frame.view.OrgTypeListView
import com.gpzx.zx.module.home.ui.activity.OrgTypeListActivity
import com.gpzx.zx.utlis.GpDbUtlis
import com.wkq.base.frame.mosby.MvpBasePresenter

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/7/4
 *
 * 用途:
 */


class OrgTypeListPresenter :MvpBasePresenter<OrgTypeListView> (){
    fun initData(orgTypeListActivity: OrgTypeListActivity, title: String?) {
    var db=GpDbUtlis(orgTypeListActivity)
       var list= db.getOrgTypeList(title)
        if(view!=null)view.showList(list)
    }
}